package com.bawei.login.repos

import com.bawei.http.ApiBaseResponse
import com.bawei.login.api.LoginApiServer
import com.bawei.login.entity.RequestEntity
import com.bawei.login.entity.UserEntity
import javax.inject.Inject

class LoginRepository @Inject constructor(private val apiServer: LoginApiServer) {

    suspend fun loginToServer(userName: String, password: String): ApiBaseResponse<UserEntity> {
        return apiServer.userLogin(userName, password)
    }



}